package cn.dengta.webapp.user.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.common.model.ValueProxyImpl;
import lombok.Getter;

@Getter
public enum InviteLevel implements ValueProxyImpl<InviteLevel, Integer> {
	UNKNOWN(0, "无"),
	STRONG(1, "绑定");

	public final Integer value;
	public final ValueProxy<InviteLevel, Integer> proxy;

	InviteLevel(int value, String label) {
		this.value = value;
		this.proxy = new ValueProxy<>(this, value, label);
	}

	public static InviteLevel of(int value) {
		return UNKNOWN.getValueOf(value);
	}

}
